package com.xt.purchasingsystem.mapper;


import com.xt.purchasingsystem.dto.SGatherDto;
import com.xt.purchasingsystem.model.SGather;

import java.util.List;

public interface SGatherMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SGather record);

    /**
     * 查询所有未审核的入库申请单和对应的入库明细
     * @return
     */
    List<SGatherDto> getAllNoCheckSgather();

    /**
     * 多条件查询所有已审核未调度的入库申请单和对应的入库明细
     * @param sGatherDto
     * @return
     */
    List<SGatherDto> getAllIsCheckSgather(SGatherDto sGatherDto);

    int insertSelective(SGather record);

    SGather selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SGather record);

    int updateByPrimaryKey(SGather record);
}